package VIEW;
import java.awt.Dimension;
public class internalFrameUsuarios extends javax.swing.JInternalFrame {

    public internalFrameUsuarios() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel_botões = new javax.swing.JPanel();
        jButton_USER_FECHAR = new javax.swing.JButton();
        jButton_USER_NOVO = new javax.swing.JButton();
        jButton_USER_EDITAR = new javax.swing.JButton();
        jButton_USER_EXCLUIR = new javax.swing.JButton();
        jButton_USER_SALVAR = new javax.swing.JButton();
        jButton_USER_CANCELAR = new javax.swing.JButton();

        setTitle("CADASTRO DE USUÁRIOS");
        setPreferredSize(new java.awt.Dimension(966, 560));

        jPanel_botões.setBackground(new java.awt.Color(196, 218, 192));

        jButton_USER_FECHAR.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButton_USER_FECHAR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICONES/116.png"))); // NOI18N
        jButton_USER_FECHAR.setText("FECHAR");
        jButton_USER_FECHAR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_USER_FECHARActionPerformed(evt);
            }
        });
        jButton_USER_FECHAR.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton_USER_FECHARKeyPressed(evt);
            }
        });

        jButton_USER_NOVO.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICONES/8.png"))); // NOI18N
        jButton_USER_NOVO.setText("NOVO");

        jButton_USER_EDITAR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICONES/2.png"))); // NOI18N
        jButton_USER_EDITAR.setText("EDITAR");

        jButton_USER_EXCLUIR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICONES/9.png"))); // NOI18N
        jButton_USER_EXCLUIR.setText("EXCLUIR");

        jButton_USER_SALVAR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICONES/7.png"))); // NOI18N
        jButton_USER_SALVAR.setText("SALVAR");

        jButton_USER_CANCELAR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICONES/90.png"))); // NOI18N
        jButton_USER_CANCELAR.setText("CANCELAR");

        javax.swing.GroupLayout jPanel_botõesLayout = new javax.swing.GroupLayout(jPanel_botões);
        jPanel_botões.setLayout(jPanel_botõesLayout);
        jPanel_botõesLayout.setHorizontalGroup(
            jPanel_botõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel_botõesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton_USER_NOVO, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_USER_EDITAR, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_USER_EXCLUIR, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_USER_SALVAR, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_USER_CANCELAR, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_USER_FECHAR, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel_botõesLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton_USER_CANCELAR, jButton_USER_EDITAR, jButton_USER_EXCLUIR, jButton_USER_FECHAR, jButton_USER_NOVO, jButton_USER_SALVAR});

        jPanel_botõesLayout.setVerticalGroup(
            jPanel_botõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel_botõesLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel_botõesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER, false)
                    .addComponent(jButton_USER_EXCLUIR, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton_USER_EDITAR, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton_USER_NOVO, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton_USER_SALVAR, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton_USER_CANCELAR, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel_botõesLayout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(jButton_USER_FECHAR, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jPanel_botõesLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jButton_USER_CANCELAR, jButton_USER_EDITAR, jButton_USER_EXCLUIR, jButton_USER_FECHAR, jButton_USER_NOVO, jButton_USER_SALVAR});

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 956, Short.MAX_VALUE)
            .addComponent(jPanel_botões, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 525, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(443, Short.MAX_VALUE)
                .addComponent(jPanel_botões, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jButton_USER_FECHARActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_USER_FECHARActionPerformed
        // TODO add your handling code here:
        this.dispose();
}//GEN-LAST:event_jButton_USER_FECHARActionPerformed

private void jButton_USER_FECHARKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jButton_USER_FECHARKeyPressed

}//GEN-LAST:event_jButton_USER_FECHARKeyPressed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_USER_CANCELAR;
    private javax.swing.JButton jButton_USER_EDITAR;
    private javax.swing.JButton jButton_USER_EXCLUIR;
    private javax.swing.JButton jButton_USER_FECHAR;
    private javax.swing.JButton jButton_USER_NOVO;
    private javax.swing.JButton jButton_USER_SALVAR;
    private javax.swing.JPanel jPanel_botões;
    // End of variables declaration//GEN-END:variables

public void setPosicao() {
    Dimension d = this.getDesktopPane().getSize();
    this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2); }
}